package io.github.talelin.latticy.mapper;

import io.github.talelin.latticy.dto.SpuDetailDTO;
import io.github.talelin.latticy.model.Spu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * spu数据库层
 *
 * @author YiHua
 * @since 2022-01-04
 */
@Repository
public interface SpuMapper extends BaseMapper<Spu> {

     /**
      * 获取spu的详细信息
      *
      * @param id spuId
      */
     SpuDetailDTO getSpuDetail(@Param("id") Integer id);
}
